package
{
	import flash.display.Sprite;
	
	public class FGRenderer extends Sprite
	{
		private var GAME_HEIGHT:int = 300;
		private var GAME_WIDTH:int = 300;
		private var BACKGROUND_COLOR:uint = 0x000000;
		
		private var window:Sprite;
		
		public function FGRenderer() {
			window = new Sprite();
			window.graphics.beginFill(BACKGROUND_COLOR);
			window.graphics.drawRect(0,0,GAME_WIDTH, GAME_HEIGHT);
			addChild(window);
		}

		
		/*public function renderGameState(pieces:Vector.<IFGPiece>):void {
			for each (var piece:IFGPiece in pieces) {
				var temp:Sprite = new Sprite();
				temp.graphics.beginFill(piece.getColor());
				draw(piece, temp);
				window.addChild(temp);
			}
		}
		
		private function draw(piece:IFGPiece, canvas:Sprite):void {
			//at some point, differentiate between different types here. 
			canvas.graphics.drawRect(piece.getXPos(), piece.getYPos(), piece.getWidth(), piece.getHeight());
		}*/
		
	}
}